<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <div class="nav nav-tabs">
        <h4>短信发送列表</h4>
    </div>
    <div class="table-actions">
        <div class="btn-group">
            <if condition="auth_check('addsms')"><a href="{:url('addsms')}" class="btn btn-default">发送短信</a></if>
            <if condition="auth_check('email')"><a href="{:url('email')}" class="btn btn-default">邮箱导出</a></if>
        </div>
    </div>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th width="15">
                ID
            </th>
            <th>创建日期</th>
            <th>发送模块</th>
            <th>模板id</th>
            <th>状态</th>
            <th>发起人</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="lists" item="vo">
            <tr>
                <td>
                    {$vo.id}
                </td>
                <td>{$vo.create_time|date="Y-m-d",###}</td>
                <td>
                    <php>$vo['models'] = json_decode($vo['models'],true);</php>
                    <volist name="vo.models" id="model">
                        {$models[$model]}
                    </volist>
                </td>
                <td>{$vo.templid}</td>
                <td>
                    <switch name="vo.status">
                        <case value="0">未发送</case>
                        <case value="1">发送中</case>
                        <case value="2">发送完成</case>
                    </switch>
                </td>
                <td>{$vo.user_nickname}</td>
                <td>{$vo.remark}</td>
            </tr>
        </foreach>
        </tbody>
    </table>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>